﻿using System;
using System.ComponentModel.DataAnnotations;

namespace GGetTestService.Entity
{
    /// <summary>
    /// 学生实体
    /// </summary>
    public class Student
    {
        [Key]
        public Guid Id { get; set; }

        [MaxLength(250)]
        [Required]
        public string Name { get; set; }

        public int Age { get; set; }

        public Guid? TeacherId { get; set; }

        public Teacher Teacher { get; set; }

    }
}